home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / CHASSIS_ / HELPCLOS.C < prev    next >
Text File  |  1992-05-14  |  741b  |  27 lines

  1. /************************************************************************************/
  2. /*    HelpCloseProc                                                                    */
  3. /************************************************************************************/
  4.  
  5. #include "MyHeaders.h"
  6.  
  7. int HelpCloseProc ()
  8. {
  9.     int        HCRetCode = 0;
  10.     int        item;
  11.  
  12.     if (windTbl[1].windPtr == 0)                        /* if window already closed    */
  13.         goto ENDING;                                    /* skip this whole thing    */
  14.         
  15.  
  16.     LDispose (helpList);                                /* delete the list            */
  17.  
  18.     windTbl[1].windPathRefNum = 0;                        /* indicate file closed        */
  19.     CloseWindow(windTbl[1].windPtr);                    /* close the window            */
  20.     windTbl[1].windPtr = 0;                                /* indicate closed            */
  21.     windTbl[1].windTEChanged = FALSE;                    /* initialize                */
  22.  
  23.  
  24. ENDING:
  25.     return    HCRetCode;
  26.  
  27. }